﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace STF.Blog.Model
{
    /// <summary>
    /// 发布形式表
    /// </summary>
    public class ReleaseForm:BaseEntity
    {
        [Required(ErrorMessage = "{0}不能为空")]
        [StringLength(255), Column(TypeName = "varchar(255)")]
        [Display(Name = "形式名称")]
        public string Title { get; set; }

        [Required(ErrorMessage = "{0}不能为空")]
        [StringLength(500), Column(TypeName = "varchar(500)")]
        [Display(Name = "形式描述")]
        public string Details { get; set; }
    }
}
